.app-container {
  height: 100%;
  background-color: #f1f5f7;
  position: relative;

  .no-padding {
    padding: 0rem;
  }

  .el-row {
    height: 100%;

    .el-col {
      height: 100%;

      .head-container:nth-child(2) {
        height: calc(100% - 52px);

        .el-scrollbar {
          height: 100%;
        }
      }
    }
  }

  .left-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 999;
    width: 266px;
    height: 100%;

    .top-container {
      height: 45%;

      .head-container:nth-child(2) {
        height: 85%;
      }
    }

    .pole-list {
      background-color: #fff;
      height: 50%;
      overflow: hidden;

      .header {
        margin: 16px 0 16px 20px;
        font-weight: 500;
        color: #333333;
      }

      .line {
        width: 265px;
        height: 1px;
        border: 1px solid #e5e5e5;
      }
    }
  }

  .tools-wrap {
    width: 351px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;

    .tools {
      height: 46px;
      background: #ffffff;
      box-shadow: 0px 9px 14px 4px rgba(0, 0, 0, 0.05), 0px 6px 8px 0px rgba(0, 0, 0, 0.08), 0px 3px 3px -2px rgba(0, 0, 0, 0.12);
      border-radius: 2px;
      display: flex;
      align-items: center;

      .item {
        display: flex;
        align-items: center;

        .title {
          min-width: 28px;
          height: 20px;
          font-size: 14px;
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          color: #333333;
          line-height: 20px;
          margin-right: 4px;
        }

        .title-active {
          color: #3f9eff;
        }

        .img {
          width: 16px;
          height: 16px;
          margin-right: 18px;

          img {
            width: 100%;
            height: 100%;
          }
        }

        .line {
          width: 1px;
          height: 20px;
          border: 1px solid rgba(0, 0, 0, 0.1);
          margin-right: 18px;
        }

        &:nth-child(1) {
          margin-left: 24px;
        }
      }
    }

    .tool-con {
      width: 280px;
      margin-bottom: 9px;
    }

    .edit-con {
      width: 276px;
    }

    .tools-con {
      width: 351px;
    }

    .layer-con {
      width: 146px;
      height: 167px;
      margin-left: 180px;
      display: block;
      padding: 10px 24px;
    }
  }

  .e-header-con {
    height: 46px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #e9e9e9;
    margin-bottom: 20px;
    justify-content: space-between;

    .title {
      font-size: 16px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #333333;
      line-height: 22px;
    }

    .img {
      width: 14px;
      height: 14px;
      cursor: pointer;

      img {
        width: 100%;
        height: 100%;
      }
    }
  }

  .switch-con {
    width: 4.54rem;
    position: absolute;
    top: 130px;
    right: 20px;
    z-index: 999;
    background-color: #fff;

    .header-con {
      @extend .e-header-con;
    }

    .el-form {
      padding-right: 24px;
    }

    .footer-con {
      display: flex;
      justify-content: flex-end;
      padding-right: 24px;
      margin-bottom: 30px;
    }
  }

  .e-detail-con {
    width: 5.46rem;
    height: 100%;
    background-color: #fff;
    box-shadow: 0px 12px 48px 16px rgba(0, 0, 0, 0.03), 0px 9px 28px 0px rgba(0, 0, 0, 0.05), 0px 6px 16px -8px rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    position: absolute;
    z-index: 999;
    top: 0;
    right: 0;

    .header-con {
      @extend .e-header-con;
      border-bottom: none;

      .title {
        font-weight: 600;
      }
    }
  }

  .switch-detail-con {
    @extend .e-detail-con;

    .content-con {

      .basic-info {
        margin: 21px auto 32px 20px;

        span {
          margin-right: 20px;
        }
      }

      .cabinet-table {
        margin: 20px 0;

        .table-head {
          width: 497px;
          height: 46px;
          background: #fafafa;
          line-height: 46px;
        }

        .table-head,
        .table-con .table-row {
          span {
            display: inline-block;
            width: 20%;
            padding-left: 20px;
          }

          .col1 {
            width: 15%;
          }

          .col2 {
            width: 25%;
          }
        }

        .table-con {
          height: 600px;
          overflow-y: scroll;

          .table-row {
            height: 46px;
            line-height: 46px;
            border-bottom: 1px solid #e8e8e8;
          }
        }
      }
    }
  }

  .pole-detail-con {
    @extend .e-detail-con;

    .tabs-con {
      width: 498px;
      height: 44px;
      line-height: 44px;
      background: #F0F4F8;
      border-radius: 21px;
      padding: 0 10px;
      margin-bottom: 24px;

      .tab {
        display: inline-block;
        padding: 0 9px;
        text-align: center;
        line-height: 32px;
        cursor: pointer;
      }

      .active {
        height: 32px;
        background: #1677FF;
        border-radius: 16px;
        color: #FFFFFF;
      }
    }

    .control-content {
      .slider-title {
        font-weight: 500;
        font-size: 16px;
        color: rgba(0, 0, 0, 0.85);
        line-height: 0.24rem;
        text-align: left;
        font-style: normal;
        margin-top: 0.24rem;
      }

      .history-con {
        margin-top: 0.16rem;
        max-height: 2rem;
        overflow-y: scroll;

        .item {
          font-family: AlibabaPuHuiTi_2_55_Regular;
          font-size: 0.16rem;
          color: #333333;
          line-height: 0.42rem;
          display: flex;
          padding-right: 0.2rem;

          .time {
            width: 1.7rem;
          }

          .val {
            flex: 1;
            margin-left: 0.3rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }
      }

      .check-con {
        cursor: pointer;
        margin-top: 28px;
        width: 236px;
        height: 62px;
        background: #FFFFFF;
        border-radius: 8px;
        border: 1px solid #1677FF;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 0.24rem;


        .text {
          font-weight: 500;
          font-size: 0.16rem;
          color: #1677FF;
          line-height: 0.22rem;
        }

        .img {
          width: 0.24rem;
          height: 0.24rem;
        }
      }
    }

    .sensor-content {
      .sensor {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        margin-top: 30px;

        .sensor-item {
          position: relative;

          .name,
          .val {
            position: absolute;
            left: 24px;
          }

          .name {
            top: 18px;
            font-family: PingFangSC, PingFang SC;
            color: #333333;
          }

          .val {
            top: 42px;

            .value {
              font-family: AlibabaPuHuiTi_2_75_SemiBold;
              font-size: 32px;
              color: #000000;
              line-height: 36px;
            }

            .unit {
              font-family: PingFangSC, PingFang SC;
              color: #666666;
            }
          }
        }
      }
    }
  }
}

// 左右分布树形搜索结构
.container-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  width: 100%;

  .container-left {
    width: 2.2rem;
    height: 100%;
    padding: 0.1rem 0.2rem;
    background-color: #ffffff;

    .left-tree {
      height: calc(100% - 0.52rem);
    }
  }

  .container-right {
    width: calc(100% - 2.4rem);
    height: 100%;
    margin-left: 0.2rem;
  }

  .treespan::after {
    display: block;
    clear: both;
    visibility: hidden;
  }
}

// 搜索区域
.search-con {
  background: $color_white;
  margin-bottom: 0.1rem;
  border-radius: 0.02rem;
  box-sizing: border-box;

  .title {
    font-size: 0.14rem;
    font-weight: 500;
    color: #000000;
    padding: 0.1rem 0.2rem;
    border-bottom: 1px solid #e6e6ec;
  }

  .el-form {
    padding: 0.2rem 0.2rem 0;

    .el-form-item {
      margin: 0 0.2rem 0.2rem 0;
      height: 0.28rem;

      .el-form-item__label {
        min-width: 0.8rem;
      }

      .el-form-item__content {
        width: 2.6rem;

        .el-input__inner,
        .el-range-input {
          font-size: 12px;
        }

        .el-select,
        .el-cascader,
        .el-date-editor {
          width: 100%;
        }
      }
    }
  }
}

.search-btn-con {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 0.2rem;
  padding-bottom: 0.1rem;

  .el-button {
    width: 0.8rem;
    height: 0.28rem;
    border-radius: 2px;
    font-size: 0.14rem;
    font-weight: 400;
  }
}

// 主内容区域
.main-con {
  height: calc(100% - 1.6rem);
  background: #ffffff;
  border-radius: 0.02rem;

  .summary-con {
    padding: 0.2rem;
    display: flex;
    justify-content: space-between;

    .left-con,
    .center-con,
    .right-con {
      width: 5.8rem;
      height: 1.1rem;
      background: #f8f9fc;
      border-radius: 0.04rem;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .img {
        width: 0.88rem;
        height: 0.93rem;
        margin-top: 8px;

        img {
          width: 100%;
          height: 100%;
        }
      }

      .line {
        width: 0.01rem;
        height: 0.41rem;
        border: 0.01rem solid #e2ede0;
      }

      .item-wrap {
        .num {
          font-size: 0.24rem;
          font-family: PingFangSC, PingFang SC;
          font-weight: 600;
          color: #1d2129;
          line-height: 0.33rem;

          .unit {
            font-weight: 500;
            color: #1f2d3d;
            line-height: 0.24rem;
          }
        }

        .title {
          height: 0.22rem;
          font-size: 16px;
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          color: #475669;
          line-height: 0.22rem;
          margin-top: 0.06rem;
        }

        &:last-child {
          margin-right: 0.6rem;
        }
      }
    }

    .center-con,
    .right-con {
      width: 3.2rem;
      height: 1.1rem;
      background: #f8f9fc;
      border-radius: 0.04rem;
      display: flex;
      align-items: center;
      justify-content: flex-start;

      .img {
        width: 56px;
        height: 56px;
        margin: 0 24px;

        img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }

  .title-con {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e6e6ec;
    margin-bottom: 0.1rem;
    padding: 0.1rem 0.2rem;
    position: relative;

    .title {
      font-size: 0.14rem;
      font-family: PingFang-SC-Medium, PingFang-SC;
      font-weight: 500;
      color: #000000;

      .time_select {
        position: absolute;
        right: 0.2rem;
        top: 0.02rem;

        .item {
          margin-right: 0.2rem;
        }
      }
    }

    .operate-btn-con {
      display: flex;

      .el-button {
        min-width: 0.8rem;
        height: 0.28rem;
        border-radius: 0.02rem;
      }
    }
  }
}

.content-con {
  overflow: hidden;
  border-radius: 2px;
  padding: 0 0.25rem;
  width: 100%;
  height: calc(100% - 0.59rem);

  .el-table__inner-wrapper {
    height: 100% !important;
  }

  .el-table__header {
    height: 0.5rem;
    background: #fafafa;
  }

  .chart {
    width: 100%;
    height: 100%;
  }

  .no_data {
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
  }
}

.el-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0.2rem;
}

// 弹窗
.el-dialog {
  .el-dialog__body {
    padding: 10px 20px 30px;

    .basic-information {
      width: 100%;

      .title {
        line-height: 30px;
        font-size: 14px;
        font-weight: bold;
      }

      .content {
        font-size: 14px;
        margin-right: 8px;
      }
    }

    .el-step__title,
    .el-step__description,
    .el-step__icon {
      cursor: pointer;
    }

    .transfer-content {
      width: 80px;
      display: flex;
      flex-direction: column;
      align-items: center;

      .item {
        width: 50px;
        height: 50px;
        border: 1px solid transparent;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
        background: rgba(64, 158, 255, 0.2);
      }

      .active {
        background: rgba(64, 158, 255, 1);
      }
    }

    // 报警处理/置查看dialog
    .confirmView {
      margin: 10px 0 0 15px;
      font-size: 16px;
      font-weight: 700;
    }

    // 报警处理/置查看dialog基础信息
    .viewIcon {
      display: flex;
      float: right;
    }

    // 图片
    .item_img {
      float: left;
    }

    .multiImg {
      width: 100px;
      height: 100px;
      display: flex;
      margin-left: 10px;
      flex-direction: row;
    }

    .second_ticket {
      margin-left: 20px;
    }

    .chooseTime {
      //display: flex;
      position: absolute;
      top: 1.08rem;
      right: 0.4rem;
      margin-top: 0.1rem;
      z-index: 999;

      span {
        margin: 0 10px 0 10px;
      }
    }

    .chooseBtn {

      //margin-top: 0.1rem;
      .dataType {
        width: 1rem;
        display: inline;
        margin: 0.08rem 0.06rem;

        .dataBtn {
          margin-top: 0.1rem;
        }
      }
    }

    // 环境传感器chart
    .chooseChart {
      margin-top: 0.4rem;
      width: 6rem;
      height: 3.2rem;
    }

    // 环境传感器chart--无数据
    .noData {
      width: 6rem;
      height: 3.2rem;
      margin: 0 10px 0 10px;
      text-align: center;
      line-height: 4rem;
    }
    .programDesign{
      display: flex;
      margin: 0 0.4rem;
      border: 1px solid #e5e5e5;
    }
    .programDesign_left,.programDesign_right{
      width: 27%;
      border: 1px solid #e5e5e5;
    }
    .programDesign_middle{
      width: 46%;
      border: 1px solid #e5e5e5;
      .panelEdit{
        .toolBar{
          height: 0.4rem;
          background: rgba(153, 204, 255,0.3);
          display: flex;
          justify-content: space-around;
          padding-top: 0.12rem;
          .tool_input{
            width:10%;
            height:0.18rem;
          }
        }
        .panelContent{
          width: 100%;
          height: 6rem;
          overflow: auto;
          background-color: #e5e5e5;
        }
      }


    }
    .programDesign_left{
      .compo_list{
        .programTitle{
          width: 100%;
          height: 0.4rem;
          text-align: center;
          line-height: 0.4rem;
          color: #fff;
          background-color: rgb(215,215,215);
        }
        .icon_group{
          height: 0.4rem;
          width: 100%;
          padding-top: 0.12rem;
          display: flex; 
          justify-content: space-around;
          border-bottom: 1px solid #e5e5e5;
        }
        .programContent{
          height: 2rem; 
          overflow: auto;
          .list{
            padding: 0.08rem;
            border-bottom: 1px solid #e5e5e5;
          }
          //选中样式
          .isActive{
            background-color: rgba(215, 215, 215,0.2);
          }
        }
      }
      .resourceList{
        height:3.4rem;
        overflow: auto;
        .resourceTitle{
          width: 100%;
          height: 0.4rem;
          text-align: center;
          line-height: 0.4rem;
          color: #fff;
          background-color: rgb(215,215,215);
        }
        .resourceItem{
          cursor: pointer;
          .item_typename{
            height: 0.4rem;
            text-align: center;
            line-height: 0.4rem;
            background-color: rgba(221, 236, 246);
            color: #000000;
          }
          .item_name{
            height: 0.4rem;
            text-align: center;
            line-height: 0.4rem;
            color: #000000;
          }
        }
      }
    }
    .programDesign_right{
      height: 6.4rem;
      .componentTitle{
        width: 100%;
        height: 0.4rem;
        text-align: center;
        line-height: 0.4rem;
        color: #fff;
        background-color: rgb(215,215,215);
      }
      .attributeData{
        height:  6rem;
        width: 100%;
        padding: 0.08rem;
        overflow-y: auto;
        overflow-x: hidden;
        .attr_position,.attr_size{
          display: flex;
          width: 1.72rem;
          .position{
            width: 50%;
            margin-right: 0.1rem;
          }
        }
        .single_select{
          width: 74%;
        }
      }
    }
    
  }

  .el-form {
    .el-form-item__content {
      width: 2.6rem;

      .el-select,
      .el-cascader,
      .el-date-editor {
        width: 100%;
      }

      .el-range-input {
        font-size: 12px;
      }

      .d-flex {
        width: 100%;
        display: flex;
        align-items: center;
      }

      .ml-10 {
        margin-left: 10px;
      }
    }
  }

  // 维修配置左右栏
  .dataleft {
    float: left;
    width: 300px;
    text-align: center;
  }

  .dataright {
    float: right;
    width: 400px;
    text-align: center;
  }

  // 报警设置值/限值标题
  .dialogItemTitle {
    margin: 10px 0 30px 0;
  }

  // 报警设置富文本框自定义宽度
  .multi_input {
    width: 94%;
  }

  // 报警设置中限值报警el-form-item宽度
  .alarm_input {
    width: 30%;
  }

  // 设备管理-菜单按钮
  .buttonClass {
    margin: 10px 0 10px 20px;

    // “+”符号
    .plus {
      font-weight: bold;
      font-size: 18px;
      margin-right: 10px;
    }
  }
}

// 左侧树结构右侧人员信息
.container-new {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 400px;
  overflow: auto;

  .tree {
    height: calc(100% - 0.52rem);
    width: 50%;
  }
}

// 左侧树结构右侧人员信息
.data-con {
  background: $color_white;
  margin-bottom: 0.1rem;
  border-radius: 0.02rem;
  box-sizing: border-box;
  width: 50%;
  margin-top: 20px;

  .detail {
    margin-top: 20px;
  }
}

// el-tab样式
.page_tab {
  background-color: #fff;
  height: 40px;
  border-radius: 3px;
}

// 图表标题
.echarts-title {
  min-height: 20px;
  font-size: 16px;
  line-height: 20px;
  padding-left: 10px;
  border-left: 2px solid #002fa7;
}

// 暂无数据样式--左侧
.alarmCharts_noData_left {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 50%;
  left: 25%;
}

// 暂无数据样式--右侧
.alarmCharts_noData {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 50%;
  left: 75%;
}

// 图表框
.echarts-wraper {
  width: 100%;
  height: 280px;

  .echarts {
    width: 100%;
    height: 280px;
  }
}

.grid-content {
  min-height: 300px;
  box-shadow: 0px 0px 4px 0px rgba(189, 189, 189, 0.5);
  border-radius: 2px;
  // border: 1px solid #ebe8e8;
  background-color: #fff;
  padding: 16px;
  // 避免图表暂无数据情况height缩短
  height: 100%;

  .item_chart {
    position: relative;
  }
}

.l7-popup {
  .l7-popup-tip {
    display: none;
  }

  .l7-popup-content {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

.popup-wrapper {
  width: 2.3rem;
  height: 1.56rem;
  background: url('../../assets/images/popup-bg.png') no-repeat;
  padding: 0.16rem 0.24rem;

  .popup-title {
    padding-right: 0.17rem;
    line-height: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 0.14rem;
    color: #333333;
    margin-bottom: 10px;
  }

  .line {
    margin-left: -0.16rem;
    width: 2.14rem;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
  }

  .popup-content {
    margin-top: 10px;

    .item {
      font-size: 0.14rem;
      font-family: PingFangSC, PingFang SC;
      color: #666666;
      line-height: 0.26rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .num {
      color: #333333;
    }

    .error {
      color: #ff665d;
    }
  }
}

.error {
  color: #ff665d;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  cursor: pointer;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.25);
  transition: color 0.2s ease;
}